import itchat
import requests

key = '8daf2c3d191442c5a7df9f62d5c4ea8c'
sign = '7f4aefe6881807d1'


# def get_response(msg):
#     apiurl = 'http://www.tuling123.com/openapi/api'
#     data = {
#         "key": key,
#         "info": msg,
#         "userid": "wechat-robot"
#     }
#     try:
#         r = requests.post(apiurl, data=data).json()
#         return r.get('text')
#     except:
#         return


# @itchat.msg_register
# def tuling_reply(msg):
#     defaultReply = 'I received:' + msg['Text']
#     reply = get_response(msg['Text'])
#     return reply or defaultReply


itchat.auto_login()
itchat.send("hello world", toUserName="filehelper")
# itchat.run
